package com.example.zhunongzonghe.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.zhunongzonghe.dao.ZnOrderDetailsMapper;
import com.example.zhunongzonghe.entity.ZnOrderDetails;
import com.example.zhunongzonghe.service.IZnOrderDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class ZnOrderDetailsServiceImpl extends ServiceImpl<ZnOrderDetailsMapper, ZnOrderDetails> implements IZnOrderDetailsService {

    @Resource
    private ZnOrderDetailsMapper znOrderDetailsMapper;

    @Override
    public ZnOrderDetails selectFarmIdAndSpecId(Integer detailsId) {
        ZnOrderDetails znOrderDetails = znOrderDetailsMapper.selectById(detailsId);
        return znOrderDetails;
    }
}
